<?php if($banners):?>
<?php slot('leftbox')?>
<?php use_javascript('/project_css_js/js/jquery.cycle.all.js') ?>
<div class="slideshow">
	<?php foreach($banners as $banner): ?>
	<a href="<?php echo $banner['link'] ?>"><img src="<?php echo @myPicture::getInstance($banner['file'])->thumbnail(549,450,'center')->url() ?>" width="549" height="450" alt=""/></a>
	<?php endforeach; ?>
</div>
<script type="text/javascript">
$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade',
		speed: 1000,
		timeout: 3000
	});
});
</script>
<?php end_slot()?>
<?php else: ?>
<?php include_component('folderPicture', 'render') ?>
<?php endif; ?>